//1.公用样式
//2.公用js
//3.当前页面效果
require('../../assets/css/index.js')
//当前页面样式
require('./sports.less')


//2.公用js
let dom = require('../../utils/dom.js');
let http = require('../../utils/http.js');

//3.当前页面效果
// console.log(dom);
//相当于文档加载事件
dom.ready(function () {

<<<<<<< HEAD
<<<<<<< HEAD
  dom.click('sports')
=======
  dom.click('sports');
  dom.dbclick('sports')
  
>>>>>>> wl
=======
  dom.click('sports');
  dom.dbclick('sports')
  
>>>>>>> wl

// 倒计时
let go=dom.getById('.go')
let countdown=dom.getById('.countdown')

go.addEventListener('click',function(){
  countdown.style.display='flex'
 let timer=window.setInterval(function(){
    countdown.textContent=--countdown.textContent;
    if(  countdown.textContent==0){
      countdown.textContent='GO'
       clearInterval(timer)
       window.location.href='running.html'
    }
  },1000)
})




})